import { baseRequest } from '@/util/request'

const request = (url, ...arg) => baseRequest(`${url}`, ...arg)

//示例以application/json格式传参
export default {
    // 会话统计
    menuList(data) {
        return request('/user/list', data, 'get')
    },
    addMenu(data) {
        return request('/bizConfigMenu/add', data, 'post')
    },
    updateMenu(data) {
        return request('/bizConfigMenu/updateMenu', data, 'post')
    },
    deleteMenu(data){
        return request('/bizConfigMenu/deleteMenu', data, 'get')
    },
    getLevelList(level) {
        return request(`/bizConfigMenu/getLevelList/${level}`, {}, 'get')
    },
    getAllList(data) {
        return request(`/bizConfigMenu/getAllList`, {}, 'get')
    }
}
